镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Raise Error APT2265 If the Asset Path is Invalid - #9809

Merged
jonpryor merged 15 commits into
mainfrom
dev/dellis1972/aapt2266
Feb 25, 2025
Merged

jonpryor merged 15 commits into
mainfrom
dev/dellis1972/aapt2266

Conversation

@dellis1972

@dellis1972 dellis1972 commented Feb 19, 2025 •

Copy link
Copy Markdown
Contributor

Context https://dev.azure.com/devdiv/DevDiv/_workitems/edit/2356711

Users regularly run into the following error.

error APT2000: The system cannot find the specified file. (2): C:\Users\xxx\source\repos\AdventureWorks.MAUI\AdventureWorks.MAUI\obj\Debug\net9.0-android\assets

One of the reasons behind this is the aapt2 bug in which it cannot traverse directories with non-ASCII characters in them [1]. This has been a long standing bug that does not seem to be getting an fix any time soon.

As we know why this issue occurs, lets at least raise the specific error code with instructions on how to fix it.

[1] https://issuetracker.google.com/issues/188679588

@dellis1972 dellis1972 changed the title Dev/dellis1972/aapt2266 Add Asset Error APT2266 Feb 19, 2025
@dellis1972

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@dellis1972

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@dellis1972

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@dellis1972
dellis1972 marked this pull request as ready for review February 19, 2025 16:07

@jonathanpeppers jonathanpeppers left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise looks good. 👍

@dellis1972 dellis1972 changed the title Add Asset Error APT2266 Add Asset Error APT2267 Feb 21, 2025
@dellis1972

Copy link
Copy Markdown
Contributor Author

We had a Apt2266 already, so updated to be 2267

@dellis1972

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@dellis1972 dellis1972 changed the title Add Asset Error APT2267 Raise Error APT2265 If the Asset Path is Invalid Feb 21, 2025
@dellis1972

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@dellis1972

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@dellis1972
dellis1972 force-pushed the dev/dellis1972/aapt2266 branch from 1fde8ec to d5ba387 Compare February 25, 2025 13:27
@dellis1972

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@jonpryor
jonpryor merged commit 77a6606 into main Feb 25, 2025
@jonpryor
jonpryor deleted the dev/dellis1972/aapt2266 branch February 25, 2025 21:01
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants